home *** CD-ROM | disk | FTP | other *** search
/ Aminet 35 / Aminet 35 (2000)(Schatztruhe)[!][Feb 2000].iso / Aminet / comm / tcp / nfsd_source.lha / nfsd / src / smakefile < prev    next >
Encoding:
Makefile  |  1999-04-13  |  1.3 KB  |  62 lines

  1. # SAS/C makefile for NFSd
  2. # ©1998 Henryk Richter, derived from DMakefile by Joseph Walton
  3. #
  4. #
  5. .c.o:
  6.     $(CC) $< $(CFLAGS) cpu=$(CPU) $(IDIRS)
  7. #
  8. ##################################################################
  9.  
  10. PROG    =    nfsd
  11. DPROG     =    nfsd_debug
  12. CPU        =    68020
  13. CC        =    sc
  14. DEBUG    =    debug=symbol
  15. LFLAGS    =    smallcode noicons stripdebug
  16. DLFLAGS    =    smallcode noicons
  17. IDIRS    =    IDIR=netinclude:
  18. DEF        =    NDEBUGMSG
  19. CFLAGS    =    strmerge nostkchk memsize=huge params=r define=CPU_$(CPU) $(DEBUG) define=$(DEF)
  20.  
  21. SRCS = nfsd.c nfs_xdr.c nfs_functions.c nfs_dispatch.c \
  22.         mount_xdr.c mount_functions.c mount_dispatch.c \
  23.         nfs_utils.c handle_list.c dirlist.c config.c \
  24.         auth.c memory.c timerdev.c
  25.  
  26. OBJS = nfsd.o nfs_xdr.o nfs_functions.o nfs_dispatch.o \
  27.         mount_xdr.o mount_functions.o mount_dispatch.o \
  28.         nfs_utils.o handle_list.o dirlist.o config.o \
  29.         auth.o memory.o timerdev.o
  30.  
  31. STARTLIB = lib:c.o
  32.  
  33. LIBS = lib:sc.lib lib:amiga.lib rpcr.lib
  34. DLIBS = lib:sc.lib lib:amiga.lib rpcr.lib lib:debug.lib
  35.  
  36. default: $(PROG)
  37.  
  38. debug: $(DPROG)
  39.  
  40. clean:
  41.     delete $(OBJS) $(PROG) $(DPROG)
  42.  
  43. #
  44. # how to make
  45. #    
  46. $(PROG):    $(OBJS)
  47.             slink with <<
  48.                 from $(STARTLIB) $(OBJS)
  49.                 to $@
  50.                 lib $(LIBS)
  51.                 $(LFLAGS)
  52.             <
  53.  
  54. $(DPROG):    $(OBJS)
  55.             slink with <<
  56.                 from $(STARTLIB) $(OBJS)
  57.                 to $@
  58.                 lib $(DLIBS)
  59.                 $(DLFLAGS)
  60.             <
  61.  
  62.